package com.come4loves.game.module.skill;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractSkillActorParser implements SkillActorParser {
	protected Logger LOGGER = LoggerFactory.getLogger(this.getClass());
	private static Map<String, AbstractSkillActorParser> map = new HashMap<>();
	@PostConstruct
	private void init(){
		map.put(skillId(), this);
	}
	
	public static AbstractSkillActorParser get(String skillId){
		return map.get(skillId);
	}
}
